package com.xframework.model;

import java.io.Serializable;

/**
 * Created by xuning on 2020/9/8.
 */
public class RespData<T> implements Serializable {

    private int code;

    private T result;//结果集

    public RespData() {

    }

    public RespData(int code) {
        this.setCode(code);
    }

    public RespData(int code, T result) {
        this.setCode(code);
        this.setResult(result);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
